FROM {{ nexus_docker_proxy | default('') }}alpine
MAINTAINER haibin.l@linkingcloud.cn
ARG TIMEZONE=Asia/Shanghai

RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.cloud.tencent.com/g' /etc/apk/repositories \
  && apk --no-cache add logrotate bzip2 nano tzdata \
  && ln -sf /usr/share/zoneinfo/$TIMEZONE /etc/localtime \
  && ln -sf /etc/periodic/daily/logrotate /etc/periodic/hourly/logrotate \
  && ln -sf /etc/periodic/daily/logrotate /etc/periodic/weekly/logrotate \
  && ln -sf /etc/periodic/daily/logrotate /etc/periodic/monthly/logrotate
